<%@page import="com.dts.project.dao.ProductMasterDao"%>
<%@page import="com.yourcompany.struts.form.ProductMasterForm"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<style>
body,td,th {
	color: #B00606;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
	background-color: #003333;
}
</style>
<title>EPost- Office</title>
<script type="text/javascript" src="scripts/moveclock.js"></script>

<script type="text/javascript">
function validate()
{
var form =document.register
if(form.userName.value=="")
{
alert("User Name is Required");
return false;
}
else if(form.password.value=="")
{
alert("Pass Word is Required");
return false;
}  
return true;
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<table width="750" align="center" bgcolor="#B00606">
<tr><td>
<img src="images/epostoffice.gif" width="780"></td>
</tr>
<tr>
   <td bgcolor="#E16A00">
   <jsp:include page="Adminoptions.jsp"/>
   </td></tr>
<tr><td>
<%--<div align="center">--%>
<%--<table bgcolor="#B00606" width="750" align="center">--%>
<%--<tr>--%>
<%--   <td><jsp:include page="Template.html"/></td></tr></table></div>--%>
<div align="center">
<table bgcolor="#B00606" width="770" align="center" height="70">
<tr>
   <td>
   
    <marquee><font color="#ECEDF3"><h1>WELCOME TO THE Admin Site</h1></marquee>
<marquee> <img src="images/IndianStamps.gif" height="100"><img src="images/ist2_1276217-vintage-indian-stamps-ephemera.jpg" height="100"><img src="images/images.jpeg" height="100"><img src="images/images1.jpeg" height="100"><img src="images/stamp price.jpg" height="100"><img src="images/2007-03-28-sw-stamps.jpg" height="100"><img src="images/6a00d83452795369e200e5506182958834-500wi.jpg" height="100"><img src="images/stamp-avocet.JPG" height="100"></marquee>
      <p align="center">
    
    
    
    <table bgcolor="#666633"><tr><td>
    
   <center>
     <h2><font color="white"><b><u>Update Product Master</u> </b></font></h2>
     <%
try
{
int id=Integer.parseInt(request.getParameter("Id"));
ProductMasterDao dao=new ProductMasterDao();
ProductMasterForm form=dao.ViewProductMasterById(id); 
%> 
 <form action="updateproductAction.do">
 			<table align="center" bordercolor="#6666FF" bgcolor="#666633">
			<tr><td><input type=hidden name="productId" value="<%=id%>"/></td></tr>
			<tr><td><font color="white"><b>Product Name :</b></font> </td><td><input type=text name="productName" value="<%=form.getProductName()%>"/></td></tr> 
			<tr><td><font color="white"><b>Product Description  :</b></font>	 </td><td><textarea name="productDesc"><%=form.getProductDesc()%></textarea></td></tr>
			<tr><td></td><td><input type=submit name="Update" value="Update"/></td></tr></table>
	<%}catch(Exception e)
	{
	e.printStackTrace();
	}
	 %>
		</form>
     </center>
    
     
     
     </td></tr></table></td></tr></table>
          <p>&nbsp;</p>
               <p>&nbsp;</p>
                </div>


</body></html>